﻿using WidgetsDesign.API.Models;

namespace WidgetsDesign.API.Services
{
    /// <summary>
    /// 吊装
    /// </summary>
    public interface ICraneOperationRepository
    {
        /// <summary>
        /// 创建吊装作业许可证
        /// </summary>
        /// <param name="craneOperation"></param>
        void CreateCraneOperation(CraneOperationModel craneOperation);
        /// <summary>
        /// 添加安全措施
        /// </summary>
        /// <param name="craneOperation"></param>
        void CreateCraneOperationRisk(CraneOperationModel craneOperation);
        /// <summary>
        /// 添加签名
        /// </summary>
        /// <param name="craneOperation"></param>
        void CreateCraneOperationSign(CraneOperationModel craneOperation);
        /// <summary>
        /// 保存
        /// </summary>
        /// <returns></returns>
        Task<bool> SaveAsync();

        /// <summary>
        /// pdf
        /// </summary>
        /// <param name="inputFilePath"></param>
        /// <param name="outputFilePath"></param>
        /// <param name="craneOperation"></param>
        /// <returns></returns>
        string CraneOperationTopdf(string inputFilePath, string outputFilePath, CraneOperationModel craneOperation);

    }
}
